<h1>Editing course</h1>

<% form_for course, :url => {:controller => "courses", :action => "edit" } do |f| %>
  <%= f.error_messages %>

  <p>
    Semester: <%=h course.term %>
  </p>
  <p>
      Semester: <%=h course.name %>
    <%= f.label :name %><br />
    <%= f.text_field :name %>
  </p>
  <p>
    <%= f.label :required_ta %><br />
    <%= f.text_field :required_ta %>
  </p>
  <p>
    <%= f.submit 'Update' %>
  </p>
<% end %>

<%= link_to 'Show', course %> |
<%= link_to 'Back', semester_path(course.term) %>